Skip to main content

Struct STaskMethodBuilder<T>

Assembly: WaaS.Core.dll
View Source
Declaration
public struct STaskMethodBuilder<T>

Properties

Task

View Source
Declaration
public STask<T> Task { get; }

Methods

Create()

View Source
Declaration
public static STaskMethodBuilder<T> Create()
Returns

STask.STaskMethodBuilder<T>

Start<TStateMachine>(ref TStateMachine)

View Source
Declaration
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
Parameters
TypeName
<TStateMachine>stateMachine
Type Parameters
  • TStateMachine

SetStateMachine(IAsyncStateMachine)

View Source
Declaration
public void SetStateMachine(IAsyncStateMachine stateMachine)
Parameters
TypeName
System.Runtime.CompilerServices.IAsyncStateMachinestateMachine

SetException(Exception)

View Source
Declaration
public void SetException(Exception exception)
Parameters
TypeName
System.Exceptionexception

SetResult(T)

View Source
Declaration
public void SetResult(T result)
Parameters
TypeName
<T>result

AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)

View Source
Declaration
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
TypeName
<TAwaiter>awaiter
<TStateMachine>stateMachine
Type Parameters
  • TAwaiter
  • TStateMachine

AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter, ref TStateMachine)

View Source
Declaration
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
Parameters
TypeName
<TAwaiter>awaiter
<TStateMachine>stateMachine
Type Parameters
  • TAwaiter
  • TStateMachine